// 挂载到vue prototype 全局方法
const dayjs = require('dayjs')

Vue.prototype.$dayjs = dayjs

Vue.prototype.$dayjsFormat = function(date, formatStr = 'YYYY-MM-DD HH:mm:ss') {
  return dayjs(date).format(formatStr)
}

import Vue from 'vue'
import request from '@/utils/request.js'
Vue.prototype.$request = request

// 全局Api
import ApiSetting from '@/api/setting'
Vue.prototype.$ApiSetting = ApiSetting

// 全局注册组件
import '@/components/export'
